package liuyuyang.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("sys_permission")
public class Permission {
  @TableId(value = "id", type = IdType.AUTO)
  private Integer id;
  @TableField("permName")
  private String permName;
  @TableField("parent_id")
  private Integer parentId;
  @TableField("path")
  private String path;

}

/*
CREATE TABLE `sys_permission`  (
  `id` INT(10) NOT NULL AUTO_INCREMENT,
  `permName` VARCHAR(50) ,
  `parent_id` INT(11) ,
  `path` VARCHAR(255) ,
  PRIMARY KEY (`id`) USING BTREE
);
 */
